
/** 게시판>게시판 를 호출되어지는 데이터 처리 로직을 위한 Data Access Interface를 상속 받아 처리하는 Class                                
* @FileName  : BoardDaoImpl.java 0.1 2014년09월12일(14:05:50)       
* @Project     : nComz n-eip 프로젝트   
* @Date         : 2014년09월12일(14:05:50)          
* @작성자      : 신용천(nComz)           	  
* @변경이력 :                         
* @프로그램 설명 :게시판>게시판(DaoImpl)    
* Copyright 2012 (주)nComz Cop. All rights Reserved.                  
*/ 

package com.sunny.hp.bd.dao; 

import java.util.LinkedHashMap; 
import java.util.List; 
import org.apache.ibatis.session.SqlSession; 
import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Repository; 
import org.apache.commons.logging.Log; 
import org.apache.commons.logging.LogFactory; 

/** 게시판>게시판 를 호출되어지는 데이터 처리 로직을 위한 Data Access Interface를 상속 받아 처리하는 Class                               
* @ClassName  : BoardDaoImpl       
* @Date         : 2014년09월12일(14:05:50)         
* @작성자      : 신용천(nComz)           	 
* @변경이력 :                        
* @프로그램 설명 :게시판>게시판(DaoImpl)                     
*/      

@Repository
public class BoardDaoImpl implements BoardDao{

	@Autowired
	private SqlSession sqlSession; 
	protected final Log logger = LogFactory.getLog(getClass());
	@Override
	public List<LinkedHashMap> selectBoardContentList(LinkedHashMap param) throws Exception{
	return sqlSession.selectList("bd.selectBoardContentList", param);
	}

	@Override
	public List<LinkedHashMap> selectBoardNewContentList(LinkedHashMap param) throws Exception{
	return sqlSession.selectList("bd.selectBoardNewContentList", param);
	}

	@Override
	public LinkedHashMap selectBoardContentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.selectOne("bd.selectBoardContentInfo", param);
	}

	@Override
	public int insertBoardContentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.insert("bd.insertBoardContentInfo", param);
	}

	@Override
	public int selectBoardContentKey(LinkedHashMap param) throws Exception{
	return sqlSession.selectOne("bd.selectBoardContentKey", param);
	}

	@Override
	public int updateBoardContentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.update("bd.updateBoardContentInfo", param);
	}

	@Override
	public int deleteBoardContentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.delete("bd.deleteBoardContentInfo", param);
	}

	@Override
	public List<LinkedHashMap> selectBoardCommentInfoList(LinkedHashMap param) throws Exception{
	return sqlSession.selectList("bd.selectBoardCommentInfoList", param);
	}

	@Override
	public LinkedHashMap selectBoardCommentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.selectOne("bd.selectBoardCommentInfo", param);
	}

	@Override
	public int insertBoardCommentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.insert("bd.insertBoardCommentInfo", param);
	}

	@Override
	public int selectBoardCommentKey(LinkedHashMap param) throws Exception{
	return sqlSession.selectOne("bd.selectBoardCommentKey", param);
	}

	@Override
	public int updateBoardCommentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.update("bd.updateBoardCommentInfo", param);
	}

	@Override
	public int deleteBoardCommentInfo(LinkedHashMap param) throws Exception{
	return sqlSession.delete("bd.deleteBoardCommentInfo", param);
	}

}
